package org.spring.boot.kafka.demo.consumer.consumer;

import org.spring.boot.kafka.demo.common.entity.Info;
import org.spring.boot.kafka.demo.common.entity.KafkaConfig;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;

@Service
public class InfoConsumer {

	@KafkaListener(topics=KafkaConfig.topic)
	public void t(Info info) {
		System.out.println(info.toString());
	}
}
